<template>
	<view>
		<view class="set-box">
			<u-form :model="form" ref="uForm" >
				<u-form-item label="ID:" label-width="160" prop="number">
					<u-input disabled v-model="detail.id" />
				</u-form-item>
				<u-form-item label="用户名:" label-width="160">
					<u-input disabled v-model="detail.nickname"  placeholder="暂无" />
				</u-form-item>
				<u-form-item label="标题:" label-width="160" >
					<u-input disabled v-model="detail.title"   placeholder="暂无"  />
				</u-form-item>
				<u-form-item label="url:" label-width="160" >
					<u-input disabled type="textarea" v-model="detail.url" placeholder="暂无"  />
				</u-form-item>
				<u-form-item label="IP:" label-width="160" prop="money">
					<u-input disabled v-model="detail.ip" />
				</u-form-item>
				<u-form-item label="创建时间:" label-width="160" >
					<u-input disabled v-model="detail.create_time" placeholder="暂无"/>
				</u-form-item>
			</u-form>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				detail: {}
			};
		},
		onLoad(e) {
			this.logDetails(e.id)
		},
		methods: {
			// 获取回款详情
			logDetails(id) {
				// 查看回款详情（审批的时候）
				this.$u.api.getOperatelog({
					ids: id,
				}).then(res => {
					if(res.code == 1 ) {
						this.detail = res.data
						this.detail.create_time = this.$u.timeFormat(this.detail.create_time, 'yyyy/mm/dd hh:MM')
					}
				})
			},
		},
	}
</script>

<style lang="scss">
.set-box {
	padding: 0rpx 22rpx 150rpx;
 }

</style>
